package com.sailfish.template;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author XIAXINYU3
 * @date 2021.7.26
 */
@SpringBootApplication
@MapperScan(basePackages = {"com.sailfish.template.infra.mapper"})
@EnableDiscoveryClient
@EnableFeignClients({"com.sailfish.template.infra.feign"})
@EnableAsync
@EnableTransactionManagement
@EnableScheduling
public class TemplateApplication {
    public static void main(String[] args) {
        SpringApplication.run(TemplateApplication.class, args);
    }
}

